package cn.icanci.nacos.config.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author icanci(1205068)
 * @version Id: NacosConfigController, v 0.1 2023/4/23 21:07 icanci Exp $
 */
@RefreshScope
@RestController
@RequestMapping("nacosConfig")
public class NacosConfigController {
    @Value("${server.port}")
    private String serverPort;

    @GetMapping("serverPort")
    public String serverPort() {
        return serverPort;
    }
}